<!--#layout("/common/layout.html",{"jsBase":"/js/admin/user/"}){ -->
<div>
	<div class="layui-btn-group" style="float: right">
		<layui:accessButton function="user.add" action="add">增加</layui:accessButton>
		<layui:accessButton function="user.delete" action="batchDel">批量删除</layui:accessButton>
		<layui:accessButton function="user.export" action="exportUsers">导出Excel</layui:accessButton>
	</div>
	<div style="float: left">
		<layui:searchForm formId="searchForm"  condition="${search}">
		</layui:searchForm>
	</div>
	<div style="clear: both"></div>
</div>

<table id="userTable" lay-filter="userTable"></table>
<!--#} -->
<script>
layui.use(['index'], function(){
  var index = layui.index
  index.init();
});
</script>
<script type="text/html" id="toobar">
	<!--<layui:accessButton function="user.role.add" action="userRole">操作角色</layui:accessButton>-->
	<layui:accessButton function="user.update" action="update">编辑</layui:accessButton>
	{{# if(d.code !="userAdmin" && d.code !="admin" ){ }}
	<layui:accessButton function="user.delete" action="del">删除</layui:accessButton>
	{{# } }}
	<layui:accessButton function="user.reset" action="updatePwd">修改密码</layui:accessButton>
	{{#  if(d.imei !='' && d.imei != null){ }}
	<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="untying" id="untying">解绑手机串号</a>
	{{# } }}
</script>
<script type="text/html" id="indexTpl">
	{{d.LAY_TABLE_INDEX+1}}
</script>
